﻿using Core.ValidateRules.Lib;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dto.Core
{
    /// <summary>
    /// 删除服务入参
    /// </summary>
    public class DeleteSip: BaseSipDto
    {
        #region Sid

        /// <summary>
        /// 雪花Id
        /// </summary>
        private long? _sid;

        /// <summary>
        /// 雪花Id
        /// </summary>
        [JsonProperty("sid")]
        [ValidateRulesRequired(ErrorMessage = "传入的Sid不允许为空")]
        public long? Sid
        {
            get { return _sid; }
            set { SetProperty(ref _sid, value); }
        }

        #endregion Sid 

        #region 操作人（外键Sid）

        /// <summary>
        /// 操作人（外键Sid）
        /// </summary>
        private long? _updatedBy;

        /// <summary>
        /// 操作人（外键Sid）
        /// </summary>
        [JsonProperty("updated_by")]
        [ValidateRulesRequired(ErrorMessage = "传入的操作人不允许为空")]
        public long? updatedBy
        {
            get { return _updatedBy; }
            set { SetProperty(ref _updatedBy, value); }
        }

        #endregion 操作人（外键Sid） 

        #region 操作人姓名

        /// <summary>
        /// 操作人姓名
        /// </summary>
        private string? _updatedByName;

        /// <summary>
        /// 操作人姓名
        /// </summary>
        [JsonProperty("updated_by_name")]
        [ValidateRulesRequired(ErrorMessage = "传入的操作人姓名不允许为空")]
        public string? UpdatedByName
        {
            get { return _updatedByName; }
            set { SetProperty(ref _updatedByName, value); }
        }

        #endregion 操作人姓名 

        #region 删除说明（原因）

        /// <summary>
        /// 删除说明（原因）
        /// </summary>
        private string? _deletedDescription;

        /// <summary>
        /// 删除说明（原因）
        /// </summary>
        [JsonProperty("deleted_description")]
        public string? DeletedDescription
        {
            get { return _deletedDescription; }
            set { SetProperty(ref _deletedDescription, value); }
        }

        #endregion 删除说明（原因） 
    }
}
